/*
 * @Author: taoshiwei
 * @Date: 2019-04-09 14:39:32
 * @Last Modified by: taoshiwei
 * @Last Modified time: 2019-04-29 14:32:40
 *
 * 课程管理
 */

import { createAPI, createFormAPI } from '@/utils/request'

// 获取课程列表
export const list = (params, data) => createAPI(`/content/m/course/list?pageNo=${params.pageNo}&pageSize=${params.pageSize}`, 'post', data)

// 课程审核
export const approve = data => createAPI('/content/m/courseReview/approve', 'post', data)
// 课程封禁
export const forbidden = (courseBaseId, data) => createFormAPI(`/content/m/courseReview/forbidden/${courseBaseId}`, 'post', data)
// 根据ids删除课程
export const remove = data => createAPI('/content/course', 'delete', data)
// export const add = data => createAPI('/companys', 'post', data)
// export const update = data => createAPI(`/companys/${data.id}`, 'put', data)
// export const remove = data => createAPI(`/companys/${data.id}`, 'delete', data)
// export const detail = data => createAPI(`/companys/${data.id}`, 'get', data)
// export const disabled = data =>
//   createAPI(`/companys/${data.id}/state`, 'post', data)
